home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / programming / mui / mcc_popph / mcc_popph_src / popplaceholder_mcc.h < prev    next >
C/C++ Source or Header  |  1999-11-30  |  4KB  |  122 lines

  1.  
  2. /*
  3. ** $Id: popplaceholder_mcc.h,v 1.3 1999/11/16 20:58:12 carlos Exp $
  4. **
  5. ** © 1999 Marcin Orlowski <carlos@amiga.com.pl>
  6. */
  7.  
  8.  
  9. /*** Include stuff ***/
  10.  
  11.  
  12. #ifndef POPPLACEHOLDER_MCC_H
  13. #define POPPLACEHOLDER_MCC_H
  14.  
  15. #ifndef LIBRARIES_MUI_H
  16. #include "libraries/mui.h"
  17. #endif
  18.  
  19.  
  20. /*** MUI Defines ***/
  21.  
  22. #define MUIC_Popplaceholder  "Popplaceholder.mcc"
  23. #define MUIC_Popplaceholderp "Popplaceholder.mcp"
  24. #define PopplaceholderObject MUI_NewObject(MUIC_Popplaceholder
  25.  
  26. #define MUIC_Popph  "Popplaceholder.mcc"
  27. #define MUIC_Popphp "Popplaceholder.mcp"
  28. #define PopphObject MUI_NewObject(MUIC_Popph
  29.  
  30. #ifndef CARLOS_MUI
  31. #define MUISERIALNR_CARLOS 2447
  32. #define TAGBASE_CARLOS (TAG_USER | ( MUISERIALNR_CARLOS << 16))
  33. #define CARLOS_MUI
  34. #endif
  35.  
  36. #define TBPPH TAGBASE_CARLOS
  37.  
  38.  
  39. /*** Methods ***/
  40.  
  41. #define MUIM_Popph_OpenAsl     (TBPPH + 0x0000)       /* PRIVATE */
  42. #define MUIM_Popph_DoCut       (TBPPH + 0x0001)
  43. #define MUIM_Popph_DoCopy      (TBPPH + 0x0002)
  44. #define MUIM_Popph_DoPaste     (TBPPH + 0x0003)
  45. #define MUIM_Popph_DoClear     (TBPPH + 0x0004)
  46.  
  47. /*** Method structs ***/
  48.  
  49.  
  50. /*** Special method values ***/
  51.  
  52.  
  53. /*** Special method flags ***/
  54.  
  55.  
  56. /*** Attributes ***/
  57.  
  58.  
  59. #define MUIA_Popph_Array         (TBPPH + 0x0010)    /* v14 {IS.} APTR    */
  60. #define MUIA_Popph_Separator     (TBPPH + 0x0011)    /* v14 {ISG} CHAR default '|' */
  61. #define MUIA_Popph_Contents      (TBPPH + 0x0012)    /* v14 {ISG} STRPTR  */
  62. #define MUIA_Popph_StringKey     (TBPPH + 0x0013)    /* v14 {IS.} CHAR    */
  63. #define MUIA_Popph_PopbuttonKey  (TBPPH + 0x0014)    /* v14 {IS.} CHAR    */
  64. #define MUIA_Popph_StringMaxLen  (TBPPH + 0x0015)    /* v14 {I..} ULONG   */
  65. #define MUIA_Popph_CopyEntries   (TBPPH + 0x0016)    /* v14 {ISG} BOOL    */
  66. #define MUIA_Popph_PopAsl        (TBPPH + 0x0017)    /* v15 {I..} BOOL    */
  67. #define MUIA_Popph_AslActive     (TBPPH + 0x0018)    /* v15 {..G} ULONG   */
  68. #define MUIA_Popph_AslType       (TBPPH + 0x0019)    /* v15 {I..} ULONG   */
  69. #define MUIA_Popph_Avoid         (TBPPH + 0x001a)    /* v15 {I..} ULONG   */
  70. #define MUIA_Popph_StringType    (TBPPH + 0x001b)    /* v15 {..G} ULONG   */
  71. #define MUIA_Popph_ReplaceMode   (TBPPH + 0x001c)    /* v15 {ISG} ULONG   */
  72. #define MUIA_Popph_StringObject  (TBPPH + 0x001d)    /* v15 {..G} APTR    */
  73. #define MUIA_Popph_ListObject    (TBPPH + 0x001e)    /* v15 {..G} APTR    */
  74. #define MUIA_Popph_DropObject    (TBPPH + 0x001f)    /* v15 {IS.} PRIVATE */
  75. #define MUIA_Popph_BufferPos     (TBPPH + 0x0020)    /* v14 {ISG} PRIVATE */
  76. #define MUIA_Popph_MaxLen        (TBPPH + 0x0021)    /* v14 {I.G} PRIVATE */
  77. #define MUIA_Popph_ContextMenu   (TBPPH + 0x0022)    /* v15 {ISG} BOOL    */
  78. #define MUIA_Popph_PopCycleChain (TBPPH + 0x0023)    /* v15 (ISG) BOOL    */
  79. #define MUIA_Popph_Title         (TBPPH + 0x0024)    /* v15 (IS.) STRPTR  */
  80. #define MUIA_Popph_SingleColumn  (TBPPH + 0x0025)    /* V15 (ISG) BOOL    */
  81.  
  82.  
  83. /*** Special attribute values ***/
  84.  
  85. #define MUIV_Popph_StringType_String        0
  86. #define MUIV_Popph_StringType_Betterstring  1
  87. #define MUIV_Popph_StringType_Textinput     2
  88.  
  89. #define MUIV_Popph_Avoid_Betterstring  1<<0
  90. #define MUIV_Popph_Avoid_Textinput     1<<1
  91. #define MUIV_Popph_Avoid_Nlist         1<<2
  92.  
  93. #define MUIV_Popph_InsertMode_DD_Default    1<<0
  94. #define MUIV_Popph_InsertMode_DD_CursorPos  1<<1
  95. #define MUIV_Popph_InsertMode_DD_Apend      1<<2
  96. #define MUIV_Popph_InsertMode_DD_Prepend    1<<3
  97. #define MUIV_Popph_InsertMode_DC_Default    1<<4
  98. #define MUIV_Popph_InsertMode_DC_CursorPos  1<<5
  99. #define MUIV_Popph_InsertMode_DC_Apend      1<<6
  100. #define MUIV_Popph_InsertMode_DC_Prepend    1<<7
  101.  
  102. #define MUIV_Popph_InsertMode_Default       MUIV_Popph_InsertMode_DD_Default   | MUIV_Popph_InsertMode_DC_Default
  103. #define MUIV_Popph_InsertMode_CursorPos     MUIV_Popph_InsertMode_DD_CursorPos | MUIV_Popph_InsertMode_DC_CursorPos
  104. #define MUIV_Popph_InsertMode_Apend         MUIV_Popph_InsertMode_DD_Apend     | MUIV_Popph_InsertMode_DC_Apend
  105. #define MUIV_Popph_InsertMode_Prepend       MUIV_Popph_InsertMode_DD_Prepend   | MUIV_Popph_InsertMode_DC_Prepend
  106.  
  107. /*** Structures, Flags & Values ***/
  108.  
  109.  
  110. /*** Configs ***/
  111.  
  112.  
  113.  
  114. /*** Other things ***/
  115.  
  116. #define POPPH_MAX_KEY_LEN       50       /* touch this and die! */
  117. #define POPPH_MAX_STRING_LEN   128       /* touch this and die! */
  118.  
  119.  
  120. #endif /* POPPLACEHOLDER_MCC_H */
  121.  
  122.